package com.hnl.to.wrapper;

import com.hnl.to.User;
import com.hnl.util.DAOHelperUtil;

public class UserWrapper extends User{
	private String modifiedUserIDText;	
	private String userIDText;
	private String roleNameText;
	private Integer roleNameID;

	public UserWrapper(User user){
		super(user);
	}
	
	public String getModifiedUserIDText() {
		setModifiedUserIDText(DAOHelperUtil.getUserTextByID(getModifyUserID()));
		return modifiedUserIDText;
	}

	public void setModifiedUserIDText(String modifiedUserIDText) {
		this.modifiedUserIDText = modifiedUserIDText;
	}

	public String getUserIDText() {
		setUserIDText(DAOHelperUtil.getUserTextByID(getUserID()));
		return userIDText;
	}

	public void setUserIDText(String userIDText) {
		this.userIDText = userIDText;
	}

	public Integer getRoleNameID() {
		setRoleNameID(DAOHelperUtil.getRoleNameIDByRoleID(getRoleID()));
		return roleNameID;
	}

	public void setRoleNameID(Integer roleNameID) {
		this.roleNameID = roleNameID;
	}

	public String getRoleNameText() {
		//Integer roleNameID = DAOHelperUtil.getRoleNameIDByRoleID(getRoleID());
		setRoleNameText(DAOHelperUtil.getMiscTextByID(roleNameID));
		return roleNameText;
	}

	public void setRoleNameText(String roleNameText) {
		this.roleNameText = roleNameText;
	}

}
